from django.conf.urls import url

from areas import views
from areas.views import AreasInfoViewset

urlpatterns = [
    # 显示省的信息
#     url(r'^infos/$',views.AreasInfoAPIView.as_view()),
#     url(r'^infos/(?P<pk>\d+)/$',views.AreasCityAPIView.as_view()),
]
# 路由
from rest_framework import routers
router=routers.DefaultRouter()

router.register(r'infos',AreasInfoViewset,base_name='area')
# 添加到容器中
urlpatterns+=router.urls
